
		<?php
		header("content-type:text/html;charset=utf-8");
			// 接收数据
			$iphone = $_POST['iphone'];
			
			$userpass = $_POST['userpass'];
			
			// 连接数据库，保存数据
			$cont=mysqli_connect("localhost:3306","root","root","hpl2013");
		
			
			$sql="select * from local where iphone='$iphone'& userpass='$userpass'";	

			$result=mysqli_query($cont,$sql);
	
			$rows=mysqli_num_rows($result);
			
			if($rows=1){
				echo 1;	
			}else{
				echo 0;
			}
			
		?>

